<template>
    <div class="iptBox">
        <van-search v-model="keyword" placeholder="请输入商品关键词" shape="round" @search="onSearch"/>
    </div>
</template>

<script setup>
defineProps({
    keyword:String
})

const emit=defineEmits(['searchBtn'])
const onSearch=(value)=>{
    emit('searchBtn',value)
}

</script>

<style lang="scss" scoped>
@import '../../../style/base.scss';
</style>